home *** CD-ROM | disk | FTP | other *** search
- 138
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- MoveOnReboot
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baMoveOnReboot moves a file on system reboot.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baMoveOnReboot( SourceFile, DestFile )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string.
- --- RECORDSEPARATOR ---
- SourceFile is the file to move.
- --- RECORDSEPARATOR ---
- DestFile is the new name of the file.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- The function returns 1 if
- --- RECORDSEPARATOR ---
- successful, otherwise 0. Note that the function can not
- --- RECORDSEPARATOR ---
- check if the file will actually be moved/deleted, only that Windows will attempt to do
- --- RECORDSEPARATOR ---
- it when the system next reboots.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- OK = baMoveOnReboot( "c:\Data\student.log", "c:\Backup\student.log" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baMoveOnReboot( "c:\\Data\\student.log", "c:\\Backup\\student.log" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function allows you to move or delete a file that is currently in use by Windows
- --- RECORDSEPARATOR ---
- and can't be moved or deleted until Windows restarts.
- --- RECORDSEPARATOR ---
- Passing in an empty string as the DestFile will mean that the file will be deleted on
- --- RECORDSEPARATOR ---
- reboot.
- --- RECORDSEPARATOR ---
- This function will work on folders as well as files.